import request from "utils/request";

const customerApi = {};

//分页版
customerApi.cityPageList = function (listQuery) {
   return request({
      url: "/city/pageList.do",
      method: "get",
      params: listQuery
   });
};

//不分页
customerApi.listRank = function (listQuery) {
   return request({
      url: "/city/listRank.do",
      method: "get",
      params: listQuery
   });
};

//分页版
customerApi.pageList = function (listQuery) {
   return request({
      url: "/loginUser/loginUserPage.do",
      method: "get",
      params: listQuery
   });
};

customerApi.add = function (data) {
   return request.postData("/loginUser/addLoginUser.do", data);
};

customerApi.deleteLoginUser = function (keyId) {
   return request.postData("/loginUser/deleteLoginUser.do", {keyId});
};

customerApi.update = function (data) {
   return request.postData("/loginUser/updateLoginUser.do", data);
};


export default customerApi;
